from django.conf.urls import url

from organization import views

urlpatterns = [
    # 学校列表页
    url('^org_list/$', views.OrgListView.as_view(), name='org_list'),
    # url('^org_hot/$', views.HotView.as_view(),name='org_hot'),
    # /(?P<ct>\d+)/(?P<city_id>\d+)
    # 我要学习
    url('^add_ask/', views.AddAskView.as_view(), name='add_ask'),
    # 首页
    url(r'^org_home/(?P<pk>\d+)/$', views.HomeView.as_view(), name='org_home'),
    # 课程页
    url('^org_course/(?P<pk>\d+)/', views.CourseView.as_view(), name='org_course'),
    # 学校介绍
    url('^org_desc/(?P<pk>\d+)/', views.DescView.as_view(), name='org_desc'),
    # 学校讲师
    url('^org_teacher/(?P<pk>\d+)/', views.TeacherView.as_view(), name='org_teacher'),
    # 教师列表页
    url('^teacher_list/', views.Teacher_listView.as_view(), name='teacher_list'),
    # 教师详情页
    url('^teacher_detail/(?P<pk>\d+)/', views.DetailTeacher.as_view(), name='teacher_detail'),
    # 添加收藏
    url('^add_fav/', views.AddFavView.as_view(), name='add_fav'),
]
